package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.OperationV2Config;
import com.novax.ex.activity.infrastructure.entity.result.OperationV2ConfigOuterDb;
import com.novax.ex.activity.infrastructure.entity.result.OperationV2SubConfigOuterDb;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2024/04/25/15:01
 */

public interface OperationV2ConfigMapper extends BaseMapper {


    /***
     * @Description: 查询此生成的自定义id是否已存在
     * @Author: ChenXi
     * @Date:  2023/4/18 15:41
     * @param customId
     * @return: java.lang.Integer
     **/
    Long findByCustomId(@Param("customId") String customId);

    /**
     * @param customId
     * @Description: 根据自定义id获得查询活动
     * @Author: ChenXi
     * @Date: 2024/4/25 18:12
     * @return: com.novax.ex.activity.infrastructure.entity.OperationConfig
     **/
    OperationV2Config queryOperationIdByCustomId(@Param("customId") String customId);

    /**
     * @param language
     * @param customId
     * @Description: 前台查询主活动配置与标题规则
     * @Author: ChenXi
     * @Date: 2024/4/25 18:41
     * @return: java.util.List
     **/
    OperationV2ConfigOuterDb query(@Param("language") String language, @Param("customId") String customId);

    /**
     * @param language
     * @Description: 前台查询主活动配置与标题规则
     * @Author: ChenXi
     * @Date: 2024/4/25 18:41
     * @return: java.util.List
     **/
    List<OperationV2SubConfigOuterDb> openSubList(@Param("language") String language, @Param("operationId") Long operationId);

}